package com.itcast.service.impl;

import com.itcast.mapper.TypeMapper;
import com.itcast.pojo.Type;
import com.itcast.service.Typeservice;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2020-06-19
 */
@Service("typeservice")
public class TypeServiceImpl extends ServiceImpl<TypeMapper, Type> implements Typeservice {
    @Autowired
    TypeMapper typeMapper;

    public List<Type> getAllType(){
        List<Type> list = this.list(null);
        return list;
    }

}
